//
//  RankModel.m
//  Kugou-OC
//
//  Created by BH on 16/6/8.
//  Copyright © 2016年 Sunny. All rights reserved.
//

#import "RankModel.h"

/*----------------------------------------------------------------------------------*/
@implementation RankModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    self = [super init];
    if (self) {
        self.rankID = dict[@"rankid"];
        self.rankName = dict[@"rankname"];
        self.ranktype = [dict[@"ranktype"] integerValue];
        self.intro = dict[@"intro"];
        self.imgUrl = dict[@"imgurl"];
        self.bannerurl = dict[@"bannerurl"];
        self.banner7url = dict[@"banner7url"];
        self.isvol = [dict[@"isvol"] integerValue];
        self.update_frequency = dict[@"update_frequency"];
        self.custom_type = [dict[@"custom_type"] integerValue];
        self.haschildren = [dict[@"haschildren"] boolValue];
        self.children = dict[@"children"];
        self.songInfo = dict[@"songinfo"];
        
    }
    
    return self;
}

@end
